package com.itranswarp.mydemo;

public class Client {
    public static void main(String[] args) {
        Ordinal ordinal = new Ordinal();

        ProxyInvocationHandler proxyInvocationHandler = new ProxyInvocationHandler();
        proxyInvocationHandler.setTarget(ordinal);
        Behavior proxy = (Behavior)proxyInvocationHandler.getProxy();
        proxy.eat();
        proxy.write();

    }
}
